package com.feng.yupaoback.constant;

public class BaseConst {

    /**
     * 登录状态
     */
    public static final String USER_LOGIN_STATUS = "user_login_status";

    /**
     * 角色权限 (0--普通用户  1--管理员）
     */
    public static final int COMMON_USER = 0;
    public static final int ADMIN_USER = 1;

    /**
     * 状态码及对应的状态信息
     */

    // 成功
    public static final int SUCCESS = 0;
    public static final String SUCCESS_MSG = "ok";

    // 参数错误
    public static final int PARAMS_ERROR = 40000;
    public static final String PARAMS_ERROR_MSG = "请求参数错误";

    // 空数据错误
    public static final int NULL_ERROR = 40001;
    public static final String NULL_ERROR_MSG = "请求数据为空";

    // 未登录错误
    public static final int NOT_LOGIN = 40101;
    public static final String NOT_LOGIN_MSG = "未登录";

    // 权限错误
    public static final int NO_AUTH = 40100;
    public static final String NO_AUTH_MSG = "无权限";

    /**
     * 队伍状态码 (0--公开 1--私有 2--加密)
     */
    public static final int PUBLIC_STATUS = 0;
    public static final int PRIVATE_STATUS = 1;
    public static final int SECRET_STATUS = 2;

    /**
     * 最大加入队伍数（普通用户--5 管理员--10 后续还可扩展成付费业务）
     */
    public static final int MAX_JOIN_NUMBER = 5;
    public static final int MAX_ADMIN_JOIN_NUMBER = 10;



}
